package notice

import "fmt"

//定义结构体
type User struct {
	Name string
}

//定义接口
type Notifier interface {
	DoPrint() bool //返回bool值
}

//接口实现
func (u *User) DoPrint() bool {
	fmt.Print("name:", u.Name)
	return true
}
